package com.burgeon.backend.SHOP.controller;



import com.burgeon.backend.SHOP.service.ShopAppWeiService;
import com.burgeon.backend.SHOPBACKEND.entity.vip.Employee;
import com.burgeon.backend.stsutil.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("shop/emp")
public class ShopAppWeiController extends BaseController {
    @Autowired
    private ShopAppWeiService shopAppWeiService;

    @RequestMapping("findEmpById")
    public ResponseResult<Employee> goodsByType(String daoId, String token) {
        //String token = session.getAttribute("token").toString();
        Employee data = shopAppWeiService.findEmpById(daoId,token);
        return new ResponseResult<>(SUCCESS, data);
    }
}
